package com.neusoft.ysu.populationmanagement.controller;


import com.neusoft.ysu.populationmanagement.entity.CommonResult;
import com.neusoft.ysu.populationmanagement.service.IHouseholdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 作者：赵子鉴
 * @since 2024-06-18
 */
@RestController
@RequestMapping("/household")
@CrossOrigin
public class HouseholdController {

    @Autowired
    private IHouseholdService householdService;

    /**
     * @author 张幸晔
     * @date 2024-06-18 19:54
     * @param
     * @return com.neusoft.ysu.populationmanagement.entity.CommonResult
     * 在挂在户口立户时请求该方法
     */
    @RequestMapping("selectLastInfo")
    public CommonResult selectLastInfo(){
        return householdService.selectLastInfo();
    }
}
